using System;
using System.Collections;
using System.Collections.Generic;

using BVMB.DataLayer.Base;

namespace BVMB.DataLayer.BusinessObjects
{
    public partial class HangVe : BusinessBase<int>
    {
        #region Declarations

		private int _hangVeMember = default(Int32);
		private decimal _giaTien = default(Decimal);
		private int _soLuong = default(Int32);
		
		
		private IList<Ve> _ves = new List<Ve>();
		
		#endregion

        #region Constructors

        public HangVe() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_hangVeMember);
			sb.Append(_giaTien);
			sb.Append(_soLuong);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual int HangVeMember
        {
            get { return _hangVeMember; }
			set
			{
				OnHangVeMemberChanging();
				_hangVeMember = value;
				OnHangVeMemberChanged();
			}
        }
		partial void OnHangVeMemberChanging();
		partial void OnHangVeMemberChanged();
		
		public virtual decimal GiaTien
        {
            get { return _giaTien; }
			set
			{
				OnGiaTienChanging();
				_giaTien = value;
				OnGiaTienChanged();
			}
        }
		partial void OnGiaTienChanging();
		partial void OnGiaTienChanged();
		
		public virtual int SoLuong
        {
            get { return _soLuong; }
			set
			{
				OnSoLuongChanging();
				_soLuong = value;
				OnSoLuongChanged();
			}
        }
		partial void OnSoLuongChanging();
		partial void OnSoLuongChanged();
		
		public virtual IList<Ve> Ves
        {
            get { return _ves; }
            set
			{
				OnVesChanging();
				_ves = value;
				OnVesChanged();
			}
        }
		partial void OnVesChanging();
		partial void OnVesChanged();
		
        #endregion
    }
}
